package com.zpyr.mvc.vo;

public class Carc_evaluation {

	private String eval_seq;
	private String info_seq;
	private String writer_name;
	private String content;
	private String grade;
	private String writer_id;
	private String write_date;
	private String modify_date;
	
	public String getEval_seq() {
		return eval_seq;
	}
	public void setEval_seq(String eval_seq) {
		this.eval_seq = eval_seq;
	}
	public String getInfo_seq() {
		return info_seq;
	}
	public void setInfo_seq(String info_seq) {
		this.info_seq = info_seq;
	}
	public String getWriter_name() {
		return writer_name;
	}
	public void setWriter_name(String writer_name) {
		this.writer_name = writer_name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public String getWriter_id() {
		return writer_id;
	}
	public void setWriter_id(String writer_id) {
		this.writer_id = writer_id;
	}
	public String getWrite_date() {
		return write_date;
	}
	public void setWrite_date(String write_date) {
		this.write_date = write_date;
	}
	public String getModify_date() {
		return modify_date;
	}
	public void setModify_date(String modify_date) {
		this.modify_date = modify_date;
	}
	
	public String getRecent_date() {
		return getModify_date() == null? getWrite_date() : getModify_date();
	}
	
	public String getRecent_dateYmd() {
		return getRecent_dateYmd("-");
	}
	
	public String getRecent_dateYmd(String delimeter) {
		String src = getRecent_date();
		try {
			return src.substring(0,4) + delimeter + src.substring(4,6) + delimeter + src.substring(6,8);
		}
		catch(Exception e) {
			return "yyyy"+delimeter+"MM"+delimeter+"dd";
		}
	}
	public String getRecent_dateHms(String delimeter) {
		String src = getRecent_date();
		try {
			return src.substring(8,10) + delimeter + src.substring(10,12) + delimeter + src.substring(12,14);
		}
		catch(Exception e) {
			return "hh"+delimeter+"mm"+delimeter+"ss";
		}
		
	}
	
}
